package com.Reader;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
// 字符流
public class FileReaderDemo {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("D:\\A.txt");
        char[] chs=new char[1024];
        int len;
        while ((len=fr.read(chs))!=-1){
            String s=new String(chs,0,len);
            System.out.print(s);
        }

    }
}
